home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Arashi 1.1 / Game Source / F⁄X / Squeezemain.c < prev    next >
C/C++ Source or Header  |  1992-09-09  |  611b  |  37 lines

  1. /*/
  2.      Project Arashi/STORM: Squeezemain.c
  3.      Major release: 9/9/92
  4.  
  5.      Last modification: Wednesday, September 9, 1992, 21:42
  6.      Created: Saturday, October 6, 1990, 1:16
  7.  
  8.      Copyright © 1990-1992, Juri Munkki
  9. /*/
  10.  
  11. #include "Shuddup.h"
  12.  
  13. #define    COMPRESS
  14. void    main()
  15. {
  16.     int        i;
  17.     long    ticker;
  18.     
  19.     DoInits();
  20.     SetPort(GetNewWindow(1000,0,-1));
  21. #ifdef    COMPRESS
  22.     OpenResFile("\P STORM.rsrc");
  23.     DoCompress();
  24. #else
  25.     ticker=TickCount();
  26.     InitSoundKit();
  27.     ticker=TickCount()-ticker;
  28.     SKVolume(8);
  29.     
  30.     for(i=0;i<NumSounds;i++)
  31.     {    PlayA(i,999);
  32.         while(!Button());
  33.         while(Button());
  34.     }
  35.     CloseSoundKit();
  36. #endif
  37. }